<% 
session.invalidate();

String destination ="login.jsp";
response.sendRedirect(response.encodeRedirectURL(destination));
%>